package com.yqy.spring.T1.service;

import com.yqy.spring.T1.dao.OrderDao;
import com.yqy.spring.T1.dao.UserDao;

public class OrderService {
    private OrderDao orderDao;
    private UserDao userDao;

    public OrderService(OrderDao orderDao, UserDao userDao) {
        this.orderDao = orderDao;
        this.userDao = userDao;
    }

    public void deleteOrder(){
        orderDao.deleteById();
        userDao.insert();
    }

}
